package com.xianyun.site.support.common.define;

/**
 * 业务功能模块
 * @author mac_zyj
 */
public enum FunctionModelEnum {
    /**注册*/
    REGISTERED("1","注册"),
    /**校验*/
    AUTHORITY("2","校验"),
    /**消息*/
    INFO("3","消息"),
    /**订阅*/
    SUBSCRIPTION("4","订阅");

    private final String modelType;
    private final String functionName;

    FunctionModelEnum(String modelType, String functionName) {
        this.modelType = modelType;
        this.functionName = functionName;
    }

    public static String getModelNameByTypeId(String typeId){
        for (FunctionModelEnum functionModelEnum : values()){
            if (functionModelEnum.modelType.equals(typeId)){
                return functionModelEnum.functionName;
            }
        }
        return null;
    }

}
